<template>
	<view>
		购物车
	</view>
</template>

<script>
	import request from '@/utils/request'
	export default {
		data() {
			return {

			};
		},
		onLoad() {
			this.getCartList()
		},
		methods: {
			// 获取购物车列表
			async getCartList() {
				try {
					const res = await request.get('cart/list')
					console.log('购物车res', res)
				} catch (e) {
					console.log('获取购物车数据异常', e)
				}

			}
		}
	}
</script>

<style lang="scss">

</style>